//
//  Comman.swift
//  sina
//
//  Created by 崔正强 on 17/3/30.
//  Copyright © 2017年 崔正强. All rights reserved.
//

import UIKit

//通知名称统一管理
let SWITCHROOTVIEWCONTROLLERNOTI = "SWITCHROOTVIEWCONTROLLERNOTI"

//登录授权配置信息
let client_id = "3031485862"
let redirect_uri = "http://www.itheima.com"
let client_secret = "abac10405a72bfb012dea4b8014030bc"

//屏幕尺寸
let ScreenWidth: CGFloat = UIScreen.main.bounds.width
let ScreenHeight: CGFloat = UIScreen.main.bounds.height

//随机颜色
func randomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
